import { ApiProperty } from "@nestjs/swagger";
import { Classify } from "src/modules/classify/classify.entity";
import { Tag } from "src/modules/tag/tag.entity";

export class ArticleResultVo {
    @ApiProperty({
        description:'id'
    })
    id: number;

    @ApiProperty({
        description:'标题'
    })
    title: string;

    @ApiProperty({
        description:'描述'
    })
    desc: string;

    @ApiProperty({
        description:'封面'
    })
    cover: string;

    @ApiProperty({
        description:'内容'
    })
    content: string;

    @ApiProperty({
        description:'排序'
    })
    sort: number;

    @ApiProperty({
        description:'状态'
    })
    status: number;

    @ApiProperty({
        description:'浏览量'
    })
    view: number;

    @ApiProperty({
        description:'标签集'
    })
    tags: Array<Tag>;

    @ApiProperty({
        description:'分类'
    })
    classify: Classify;

    @ApiProperty({
        description:'创建时间'
    })
    create_time: number;

    @ApiProperty({
        description:'修改时间'
    })
    update_time: number;   

}